package calender;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author wxc
 * @Date 2021/4/14 10:02
 */
public class demo2 {
    public static void main(String[] args) {
        String dtoData="2021-02-03";
        String clockIn="18:30";
        String clockTime = dtoData + " " + clockIn+":00";
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        try {
            Date parse = format.parse(clockTime);
            String format1 = format.format(parse);
            System.out.println(format1);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
